package com.feel.mall.common.service;

import com.feel.mall.common.bean.Cart;
import com.feel.mall.common.exception.FeelException;

import java.util.List;

/**
 * @Author: 刘永钦
 * @Description:
 */
public interface CartService {
//     添加购物车
    Boolean addInfo(Cart cart) throws FeelException;
//     修改
    Boolean updateInfo(Cart cart, Integer userId) throws FeelException;
//     获取购物车中商品数量
    Integer getCartNumber(Cart cart);
//     删除
    Boolean delInfo(Integer id, Integer userId) throws FeelException;
//     通过条件查询
    List<Cart> getByCondition(Cart condition);

    List<Cart> getByIdList(Integer[] cartId, Integer userId) throws FeelException;
}
